package com.atguigu.easyexcel;/*
@author mx
@date 2022-02-01-21:46
*/

import com.alibaba.excel.annotation.ExcelProperty;
import lombok.Data;

@Data public class UserData {

    /**
     * 在对应的属性上添加注解，设置表头内容
     */
    @ExcelProperty(value = "用户编号", index = 0) private int id;

    @ExcelProperty(value = "用户名称", index = 1) private String username;
}
